﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace AllServer.Core.Entity;
    ///<summary>
    ///用户会员表
    ///</summary>
    [SugarTable("TMemberVip")]
    public partial class TMemberVip
    {
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="Id")]
        public int Id {get;set;}
        /// <summary>
        /// 用户码
        /// </summary>           
        [SugarColumn(ColumnName="UserCode")]
        public string UserCode {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>           
        [SugarColumn(ColumnName="CreateTime")]
        public DateTime CreateTime {get;set;}
        /// <summary>
        /// VIP开始时间
        /// </summary>           
        [SugarColumn(ColumnName="BeginTime")]
        public DateTime BeginTime {get;set;}
        /// <summary>
        /// 结束时间，不一定是vip结束时间
        /// </summary>           
        [SugarColumn(ColumnName="EndTime")]
        public DateTime? EndTime {get;set;}
        /// <summary>
        /// 备注
        /// </summary>           
        [SugarColumn(ColumnName="Remark")]
        public string Remark {get;set;}
        /// <summary>
        /// VIP开始时间
        /// </summary>           
        [SugarColumn(ColumnName="VipEndDatetime")]
        public DateTime? VipEndDatetime {get;set;}
        /// <summary>
        /// vip等级
        /// </summary>           
        [SugarColumn(ColumnName="VipType")]
        public int VipType {get;set;}
        /// <summary>
        /// 产品编号
        /// </summary>           
        [SugarColumn(ColumnName="ProductId")]
        public int ProductId {get;set;}
        /// <summary>
        /// 是否连续包月用户
        /// </summary>           
        [SugarColumn(ColumnName="IsContinueVip")]
        public int IsContinueVip {get;set;}
        /// <summary>
        /// vip是否可用
        /// </summary>           
        [SugarColumn(ColumnName="IsEnable")]
        public bool IsEnable {get;set;}
        /// <summary>
        /// 连续包月协议编号
        /// </summary>           
        [SugarColumn(ColumnName="ContinueGoodId")]
        public string ContinueGoodId {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="AgreementNo")]
        public string AgreementNo {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="LastPayTime")]
        public DateTime? LastPayTime {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="NextPayTime")]
        public DateTime? NextPayTime {get;set;}
        /// <summary>
        /// 合同Vip类型
        /// </summary>           
        [SugarColumn(ColumnName="AgreementVipType")]
        public int AgreementVipType {get;set;}
        /// <summary>
        /// 会员权益
        /// </summary>           
        [SugarColumn(ColumnName="PrivilegeLevel")]
        public int PrivilegeLevel {get;set;}
        /// <summary>
        /// 迁移主键
        /// </summary>           
        [SugarColumn(ColumnName="RawId")]
        public int? RawId {get;set;}
        /// <summary>
        /// 最后更新时间，用于同于更新判断
        /// </summary>           
        [SugarColumn(ColumnName="SyncUpdateTime")]
        public DateTime? SyncUpdateTime {get;set;}
    }
